package com.nuyoah.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 存储课程的详细信息
 * </p>
 *
 * @author xyx
 * @since 2024-06-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Course implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 课程ID，自增长
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 课程名称
     */
    private String courseName;

    /**
     * 授课教师ID，与Teacher表关联
     */
    private Integer teacherId;

    /**
     * 学生ID，与student表关联
     */
    private Integer studentId;

    /**
     * 课程简介或介绍
     */
    private String introduction;

    /**
     * 课程开始日期
     */
    private String startDate;

    /**
     * 课程结束日期
     */
    private String endDate;

    private String image;


}
